package demo;

import demo.model.Account;
import demo.model.SecuredMethod;
import demo.redis.jedis.JedisDemo;

public class LoadTimeWeavingMain {

    public static void main(String[] args) {
        System.out.println("Hello world!");
//        testProfiling();
        testJedis();
    }

    public static void testProfiling(){
        Account account = new Account();
        System.out.println("==================");
        account.pay(10);
        System.out.println("==================");
        account.pay(50);
    }

    public static void testJedis() {
        JedisDemo demo = new JedisDemo();
        demo.initJedis();
        demo.testJedis();
    }

    public static void testSecuredMethod() {
        SecuredMethod service = new SecuredMethod();
        System.out.println("----------");
        service.unlockedMethod();
        System.out.println("----------");
        service.lockedMethod();
    }

}